import 'package:wch/generated/json/base/json_field.dart';
import 'package:wch/generated/json/report_list_entity.g.dart';
import 'dart:convert';

import 'acquisition_entity.dart';

export 'package:wch/generated/json/report_list_entity.g.dart';

@JsonSerializable()
class ReportListEntity {
	String? code;
	String? msg;
	ReportListData? data;

	ReportListEntity();

	factory ReportListEntity.fromJson(Map<String, dynamic> json) => $ReportListEntityFromJson(json);

	Map<String, dynamic> toJson() => $ReportListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ReportListData {
	int? pageIndex;
	int? pageSize;
	int? totalPage;
	int? totalCount;
	List<ReportListDataData>? data;
	int? total;
	int? current;
	dynamic records;
	int? size;
	int? pages;

	ReportListData();

	factory ReportListData.fromJson(Map<String, dynamic> json) => $ReportListDataFromJson(json);

	Map<String, dynamic> toJson() => $ReportListDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ReportListDataData {
	String? id;
	String? hospitalId;
	String? doctorId;
	String? sickPersonId;
	String? userName;
	String? mobile;
	String? sex;
	int? age;
	String? hospital;
	String? department;
	String? deviceName;
	String? deviceId;
	String? acquisitionNumber;
	int? duration;
	String? stageStatus;
	String? stageDataStatus;
	String? fileUrl;
	String? status;
	String? startTime;
	String? finishTime;
	int? finishType;
	String? createTime;
	String? updateTime;
	List<AcquisitionAcquisitionLabelList>? labelList;
	///辅助属性
	int? btnCount;

	ReportListDataData();

	factory ReportListDataData.fromJson(Map<String, dynamic> json) => $ReportListDataDataFromJson(json);

	Map<String, dynamic> toJson() => $ReportListDataDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}